package com.token.model.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @auther: henriy
 * @Date: 2023/12/29
 */
@Data
public class ValidColumnDTO {

    //@Pattern(regexp = "(^\\d{15}$)|(^\\d{18}$)|(^\\d{17}(\\d|X|x)$)", message = "身份证格式错误")
    @NotBlank(message = "身份证不能为空")
    private String idCard;

    @Pattern(regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$", message = "手机号格式错误")
    @NotBlank(message = "手机号不能为空")
    private String phone;

}
